<?php
$data=$db->selectObjects('search');
$temp=array();
foreach ($data as $key => $value)
{
	if (!isset($temp[$value->category]))
	  $temp[$value->category]=$key;
}
eDebug($temp);
?>
